Skip to content

Mongo ench - #25

Merged
ZhuchkaTriplesix merged 18 commits into
devfrom
mongo-ench
Mar 22, 2026
Merged

Mongo ench#25
ZhuchkaTriplesix merged 18 commits into
devfrom
mongo-ench

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

No description provided.

- MongoService: ensureConnected + disconnectByConnectionId; reuse socket per id
- Explorer/stats/databases: use pool; explorer dispose no longer disconnects pool
- Breadcrumb refresh bumps refreshToken; child views reload data; editor refetches doc
- Sidebar Mongo tile uses pool; drop database shows confirmation dialog
- LocalDb.addConnection returns inserted row id

Made-with: Cursor
- FoldersStorage.reload() for tests after seeding SQLite
- Widget test: narrow panel with folder + PG/Redis/Mongo rows (no pumpAndSettle)

Made-with: Cursor
- Stats: Refresh now without full reconnect; auto-refresh Off/3-60s; last updated time
- Stats: periodic poll uses _pollTick; pull-to-refresh matches toolbar
- Collections: show names first; parallel collStats in batches of 6; load generation guard

Made-with: Cursor
…test

Avoids matcher wait on findsOneWidget when folder text appears after _loadData

Made-with: Cursor
Pass animation to _BlurredDialogScaffold; blur sigma and dimming alpha
scale from 0 to target (10, 0.32) over transition duration

Made-with: Cursor
- Remove outer FadeTransition on whole dialog route (was hiding blur at t=0)
- Animate blur/dim on backdrop only; fade+scale dialog content separately

Made-with: Cursor
Rename Default to No limit; add 10s option; 120s shown as 2 min; use material.Text in items

Made-with: Cursor
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Mar 21, 2026

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

123

findsOneWidget polls until a long timeout; assert finder.evaluate().length instead

Made-with: Cursor
Connection.open() previously ignored PostgresConnection.database for URI
connections, so all explorer branches queried the same catalog.

Made-with: Cursor
- ValueKey on database/schema nodes to avoid State reuse across branches
- New folders start collapsed; first load still expands saved folders

Made-with: Cursor
Use _sqliteInt for id, port, folder_id, sort_order, use_ssl and folder
lookups so sqflite_common_ffi rows do not throw on non-int num types.

Made-with: Cursor
Rename state class to public ConnectionsPanelState and expose reload for
widget tests that must await LocalDb/sqflite inside WidgetTester.runAsync.

Made-with: Cursor
…r test

Sqflite FFI needs real async zone; capture ConnectionsPanelState outside
runAsync, call reloadConnectionsFromDb, then pumpAndSettle.

Made-with: Cursor
…rTest

- Increment _loadDataGeneration and ignore stale completions so overlapping
  sqflite-backed loads cannot clobber UI state.
- Add skipInitialDbLoadForTest (default false) for widget tests that reload
  via WidgetTester.runAsync without a second initState _loadData.

Made-with: Cursor
- Assert labels with find.text (widgetWithText+material.Text missed Text across imports).
- Use skipInitialDbLoadForTest + reloadConnectionsFromDb inside runAsync; catch
  reload errors; pump twice after async work.

Made-with: Cursor

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 4ed4ab0 into dev Mar 22, 2026
2 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the mongo-ench branch April 11, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant